package com.heima.model.schedule.pojos;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("taskinfo_logs")
public class TaskinfoLogs implements Serializable {

    private static final long serialVersionUID = 1L;

    //任务id
    @TableId(type = IdType.ID_WORKER)
    private Long taskId;

    //执行时间
    @TableField("execute_time")
    private Date executeTime;

    //参数
    @TableField("parameters")
    private byte[] parameters;

    //优先级
    @TableField("priority")
    private Integer priority;

    //任务类型
    @TableField("task_type")
    private Integer taskType;

    //版本号,用乐观锁
    @Version
    private Integer version;

    //状态 0=int 1=EXECUTED   2=CANCELLED
    @TableField("status")
    private Integer status;


}